package com.dh.weibo.pojo;

import com.dh.weibo.util.DateTimeUtil;
import com.dh.weibo.util.IDUtil;

public class Comment extends Base {
    private String cid;// 评论的ID
    private String uid;// 谁评论的
    private String content;// 评论的内容
    private String id;// 评论的微博

    public Comment( String uid, String content, String id) {
        super(DateTimeUtil.getCurrentTimeMillis(), DateTimeUtil.getCurrentTimeMillis());
        this.cid = IDUtil.createID();
        this.uid = uid;
        this.content = content;
        this.id = id;
    }

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCid() {
        return cid;
    }

    @Override
    public String toString() {
        return "Comment{" +
                "cid='" + cid + '\'' +
                ", uid='" + uid + '\'' +
                ", content='" + content + '\'' +
                ", id='" + id + '\'' +
                '}';
    }
}
